//
//  OALineInset.h
//  OASDK_Works
//
//  Created by ChenJie on 5/23/20.
//  Copyright © 2020 Mist. All rights reserved.
//

#ifndef OALineInset_h
#define OALineInset_h

/* OALineInset */
typedef struct OALineInset {
    CGFloat top, left, bottom, right, height, width;
} OALineInset;

#define OALineOffsetHeight(_inset) (_inset.top + _inset.height + _inset.bottom)

#define OALineInsetMake(_top, _left, _bottom, _right, _height, _width) \
((OALineInset){_top, _left, _bottom, _right, _height, _width})

#define OAIsEmptyLineInset(_lineInset) \
(( _lineInset.top + _lineInset.left + _lineInset.bottom + _lineInset.right + _lineInset.height + _lineInset.width) == 0)

#endif /* OALineInset_h */
